﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ElingOA6_Admin_DSJCJ.BLL
{
    /// <summary>
    /// 业务逻辑类Rc 的摘要说明。
    /// </summary>
    public class Rc
    {
        /// <summary>
        /// 组织机构DAL
        /// </summary>
        private readonly DAL.Rc dal = new DAL.Rc();

        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(string name)
        {
            return dal.Exists(name);
        }

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool Add(ElingOA6_Admin_DSJCJ.Model.Rc model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(ElingOA6_Admin_DSJCJ.Model.Rc model)
        {
            return dal.Update(model);
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        /// <param name="name"></param>
        /// <param name="value"></param>
        /// <param name="memo"></param>
        /// <returns></returns>
        public ElingOA6_Admin_DSJCJ.Model.Rc GetModel(string name)
        {

            return dal.GetModel(name);
        }
        /// <summary>
        /// 数据恢复
        /// </summary>
        /// <param name="str">sql语句</param>
        /// <param name="times">超时时间</param>
        public void Recover(string str, int times)
        {

            dal.Recover(str, times);
        }       
    }
}
